< previous page page_325 next page >

Page 325
From the same module, the following declarations
Global theSession As New CSession
Global theUser As New User
Global theMDIController As New MDIController
Global theCancelTransaction As New CancelTransaction
Global theCheckAccountStatus As New CheckAccountStatus
Global theCloseAccount As New closeAccount
Global theDepositFunds As New DepositFunds
Global theMaintainAccount As New MaintainAccount
Global theMaintainBankProducts As New MaintainBankProducts
Global theMaintainCustomer As New MaintainCustomer
Global theMaintainUsers As New MaintainUsers
Global theMaintainWorkgroups As New MaintainWorkgroups
Global theMDIController As New MDIController
Global theOpenAccount As New OpenAccount
Global theTransactionProcessor As New TransactionProcessor
Global theWithdrawFunds As New WithdrawFunds
need to be converted to Public and moved to CApplication as in Listing 14.3
LISTING 14.3 DECLARATIONS.

9f8044bafea36a1f728739c0bb58ef4c.gif
 1: Public theSession As New CSession
 2: Public theUser As New User
 3: Public theMDIController As New MDIController
 4: Public theSomeWorkgroupProxy As SomeWorkgroupProxy
 5: Public theCancelTransaction As New CancelTransaction
 6: Public theCheckAccountStatus As New CheckAccountStatus
 7: Public theCloseAccount As New closeAccount
 8: Public theDepositFunds As New DepositFunds
 9: Public theMaintainAccount As New MaintainAccount
10: Public theMaintainBankProducts As New MaintainBankProducts
11: Public theMaintainCustomer As New MaintainCustomer
12: Public theMaintainUsers As New MaintainUsers
13: Public theMaintainWorkgroups As New MaintainWorkgroups
14: Public theMDIController As New MDIController
15: Public theOpenAccount As New OpenAccount
16: Public theTransactionProcessor As New TransactionProcessor
17: Public theWithdrawFunds As New WithdrawFunds

Every use of these objects now needs to be prefixed with the parent object, theApplication. The same conversion needs to occur for the module, modWorkflow. These changes are incorporated in the source code on the CD-ROM. Only object variables are affected.
The initializeSystem method of CApplication looks like Listing 14.4 now.

 
< previous page page_325 next page >

If you like this book, buy it!